<?php
/*
 *author:Yangligao
 *Date:2013-9-28
 */

require '../../Config.php';
$flag = $_GET['flag'];

if($flag == 'display'){
	$smarty->display('Admin/FlinkM/flinkinsert.html');
}else if($flag == 'flinkinsert'){
	unset($_POST['x']);
	unset($_POST['y']);
	$flinkModel = new FlinkModel();
	
	$res = $flinkModel->flink_insert($_POST);
	
	if($res){
		jump('操作成功！', $_SERVER['HTTP_REFERER']);
	}else{
		alertInfo('操作失败！', $_SERVER['HTTP_REFERER']);
	}
}
?>
